package com.huyaanalysisplatform.controller;


import com.huyaanalysisplatform.entity.TMatch;
import com.huyaanalysisplatform.service.TMatchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import com.huyaanalysisplatform.controller.BaseController;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Huadi Group 12
 * @since 2021-08-01
 */
@RestController
@RequestMapping("/match")
@CrossOrigin
public class TMatchController extends BaseController {

    @Autowired
    TMatchService tMatchService;
    @PostMapping("")
    public Map<String, List<TMatch>> match(){
        return tMatchService.match();
    }
}
